package zyk.service;

import org.springframework.security.access.annotation.Secured;

public interface HelloService {

	/**
	 * 角色为"ROLE_USER", "ROLE_ADMIN" 可以访问
	 * @param userName
	 * @return
	 */
	@Secured({ "ROLE_USER", "ROLE_ADMIN" })
	public String sayHi(String userName);

	/**
	 * 角色为"ROLE_ADMIN" 可以访问
	 * @param userName
	 * @return
	 */
	@Secured({"ROLE_ADMIN"})
	public String sayBye(String userName);
}